package com.ducks;

import com.behaviors.FlyNoWay;
import com.behaviors.Squeak;

/**
 * @author SnowmanAndBee
 * @version <version>
 * <description>
 * @date 2021/10/24 - 22:34
 */
public class RubberDuck extends Duck{
    public RubberDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Squeak();
    }

    @Override
    public void display() {
        System.out.println("I'm a robber duck.");
    }
}
